<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css">
</head>
<body>
	<div class="status"><span>货品修改</span><a class='back' href="{:U('item',array('id'=>$_GET['id'],'gid'=>$_GET['gid']))}"><strong>返回货品列表<b></b></strong></a></div>
	<form method='post' action="{:U('runUpdateItem')}">
		<table class="table">
			<tr>
				<th>ID</th>
				<foreach name='typeName' item='v'>
					<td>{$v.name}</td>
				</foreach>
				<td>库存</td>
				<td>货号</td>
				<td>操作</td>
			</tr>
			<tr>
				<td>{$data.id}</td>
				<foreach name='goodsAttr' item='v'>
					<td>
					<select  class='select' name='attr[]'>
						<option>请选择</option>
						<foreach name='v' item='value'>	
						<option	value='{$value.id}' <if condition="in_array($value['id'],$attr_id)">selected='selected'</if> >{$value.value}</option>
						</foreach>
					</select>
					</td>
				</foreach>
				<td><input type='text' class='text' name='inventory' value='{$data.inventory}'/></td>
				<td><input type='text' class='text' name='number' value='{$data.number}'/></td>
				<td>
					<input type='hidden' name='id' value='{$data.id}'/>
					<input type='hidden' name='gid' value="{$_GET['gid']}"/>
					<input type='submit' class='add_btn' value='保存修改'/>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>